switch: Fix handle dragging with padding applied
authorTimm Bäder <mail@baedert.org>
Sat, 17 Jun 2017 11:16:50 +0000 (13:16 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000 (21:27 -0400)
commit63158fd3ff8b512c82e29eb55feea8a16c2e8f3a
tree1c09de44c1249f72b6f8c68a69b8f8a8f7494e0b
parenta73d3418bc4253725e0889705c4a60e9051b0bc5
switch: Fix handle dragging with padding applied

We only move the handle inside the content allocation, so we need to use
the content width when calculating the new handle_pos.
gtk/gtkswitch.c